---
title: 'Drag n Drop'
---

Often times the declarative version can be much simpler - compare this source to
the official demo!

Here is the reference playground in imperative:
[link](https://www.babylonjs.com/demos/dragndrop/dragdrop.js)

<code src="./drag-n-drop/DragNDrop.tsx" />
